package com.hxy.platform.admin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    /**
     * 跳转到欢迎页面
     */
    @RequestMapping("page/welcome")
    public String welcomePage() {
        return "welcome";
    }

    /**
     * 跳转到首页
     */
    @RequestMapping("page/index")
    public String indexPage(ModelMap modelMap) {
        modelMap.addAttribute("test", "test");
        return "index";
    }


    /**
     * 跳转到个人信息界面
     */
    @RequestMapping("page/info")
    public String infoPage() {
       return "admin-info";
    }
}
